/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.kungkhies.mvc.kungkhie.browse;

import com.kungkhies.services.browse.BrowseService;
import com.kungkhies.services.category.CategoryService;
import java.util.Map;
import javax.inject.Inject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * The 
 * 
 * @author clayton
 */
@Controller
public class BrowseController
{
    private BrowseService browseService;
    private CategoryService categoryService;

    /**
     * 
     * @param browseService 
     */
    @Inject
    public BrowseController(BrowseService browseService, CategoryService categoryService)
    {
        this.browseService = browseService;
    }
    
    /**
     * Returns a <code>browse</code> view and sets the model with a list of 
     * <code>Kungkhie</code> objects corresponding to the browse category.
     * 
     * @param model
     * @return 
     */
    @RequestMapping(value={"/browse"}, method = RequestMethod.GET)
    public String showKungkhiesInCategory(Map<String, Object> model)
    {
        return "browse";
    }
}
